package org.beynet.jsonbinding.bind;

import java.math.BigDecimal;

@JSONElement(name="glossary")
public class Glossary {
    @JSONElement(name="version")
    public BigDecimal getVersion() {
        return version;
    }
    public void setVersion( BigDecimal version ) {
        this.version = version;
    }
    
    @JSONElement(name="finalVersion")
    public Boolean getFinalVersion() {
        return finalVersion;
    }
    public void setFinalVersion(Boolean finalVersion) {
        this.finalVersion = finalVersion;
    }
    
    @JSONElement(name="title")
    public String getTitle() {
        return(this.title);
    }
    public void setTitle(String title) {
        this.title = title;
    }
    
    @JSONElement(name="GlossDiv")
    public GlossaryDivision getDivision() {
        return this.division;
    }
    public void setDivision(GlossaryDivision division) {
        this.division = division;
    }
    
    
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((division == null) ? 0 : division.hashCode());
        result = prime * result + ((finalVersion == null) ? 0 : finalVersion.hashCode());
        result = prime * result + ((title == null) ? 0 : title.hashCode());
        result = prime * result + ((version == null) ? 0 : version.hashCode());
        return result;
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        Glossary other = (Glossary) obj;
        if (division == null) {
            if (other.division != null)
                return false;
        } else if (!division.equals(other.division))
            return false;
        if (finalVersion == null) {
            if (other.finalVersion != null)
                return false;
        } else if (!finalVersion.equals(other.finalVersion))
            return false;
        if (title == null) {
            if (other.title != null)
                return false;
        } else if (!title.equals(other.title))
            return false;
        if (version == null) {
            if (other.version != null)
                return false;
        } else if (!version.equals(other.version))
            return false;
        return true;
    }



    private GlossaryDivision division;
    private String title ;
    private BigDecimal version;
    private Boolean finalVersion ;
}
